Adding two lists using map() and Lamda Function

42

# welcome to softhunt.net
# Add two lists using map and lambda

num1 = [10, 10, 10, 10]
num2 = [10, 30, 50, 70]

ans = map(lambda x, y: x + y, num1, num2)
print(list(ans))

Comments

Submit
0 Comments